<%@ page import="quanlythuvien.TheDocGia" %>



<div class="fieldcontain ${hasErrors(bean: theDocGiaInstance, field: 'ngayTao', 'error')} required">
	<label for="ngayTao">
		<g:message code="theDocGia.ngayTao.label" default="Ngay Tao" />
		<span class="required-indicator">*</span>
	</label>
	<g:datePicker name="ngayTao" precision="day"  value="${theDocGiaInstance?.ngayTao}"  />
</div>

<div class="fieldcontain ${hasErrors(bean: theDocGiaInstance, field: 'maDocGia', 'error')} required">
	<label for="maDocGia">
		<g:message code="theDocGia.maDocGia.label" default="Ma Doc Gia" />
		<span class="required-indicator">*</span>
	</label>
	<g:select id="maDocGia" name="maDocGia.id" from="${quanlythuvien.DocGia.list()}" optionKey="id" required="" value="${theDocGiaInstance?.maDocGia?.id}" class="many-to-one"/>
</div>

<div class="fieldcontain ${hasErrors(bean: theDocGiaInstance, field: 'maNhanVien', 'error')} required">
	<label for="maNhanVien">
		<g:message code="theDocGia.maNhanVien.label" default="Ma Nhan Vien" />
		<span class="required-indicator">*</span>
	</label>
	<g:select id="maNhanVien" name="maNhanVien.id" from="${quanlythuvien.NhanVien.list()}" optionKey="id" required="" value="${theDocGiaInstance?.maNhanVien?.id}" class="many-to-one"/>
</div>

<div class="fieldcontain ${hasErrors(bean: theDocGiaInstance, field: 'code', 'error')} required">
	<label for="code">
		<g:message code="theDocGia.code.label" default="Code" />
		<span class="required-indicator">*</span>
	</label>
	<g:textField name="code" maxlength="50" required="" value="${theDocGiaInstance?.code}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: theDocGiaInstance, field: 'tinhTrang', 'error')} required">
	<label for="tinhTrang">
		<g:message code="theDocGia.tinhTrang.label" default="Tinh Trang" />
		<span class="required-indicator">*</span>
	</label>
	<g:field type="number" name="tinhTrang" required="" value="${theDocGiaInstance.tinhTrang}"/>
</div>

